#include "StdAfx.h"
#include "EndPoint.h"
#include "LinkedNode.h"

CLinkedNode::CLinkedNode(void)
{
}

CLinkedNode::~CLinkedNode(void)
{
}

void CLinkedNode::moveDelta( const CPoint& p_point )
{
	m_position += p_point;
	EndPointList::iterator endPointIter;
	for( endPointIter = m_endPointList.begin(); 
		 endPointIter != m_endPointList.end(); 
		 ++endPointIter )
	{
		(*endPointIter)->updateWithLinkedNode();
	}
}

// void CLinkedNode::updateArrowList()
// {
// 	ArrowList::iterator arrowList;
// 	for( arrowList = m_arrowList.begin();
// 		arrowList != m_arrowList.end();
// 		++arrowList )
// 	{
// 		(*arrowList)->moveLinkedNodePointTo( this, m_position );
// 	}
// }

void CLinkedNode::setPosition( const CPoint& p_point )
{
	m_position = p_point;
	//updateArrowList();
}